package com.realtyManage.springboot.Service.impl;

import com.realtyManage.springboot.Dao.OrderRepository;
import com.realtyManage.springboot.Service.IOrderService;
import com.realtyManage.springboot.Model.Do.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 *
 * @Author 杭州素色网络科技有限公司
 * @Date 2019/8/8
 **/
@Service
@Transactional
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderRepository orderRepository;


    /**
     * 保存订单信息
     * @param
     * @return
     */

    @Override
    public Order saveOrder(Order order) {
        return orderRepository.saveAndFlush(order);
    }

}
